﻿<!DOCTYPE html>
<html lang="en">
<#include "../common/common-head.html"/>
<body class="gray-bg top-navigation">
<div id="wrapper">
    <div id="page-wrapper" class="gray-bg">
    <#include "../common/common-menu.html">
        <div class="wrapper wrapper-content">
            <div class="row white-bg" style="padding: 18px 0">
                <div class="col-xs-12">
                    <div class="form-search">
                        <form role="form" class="form-inline clearfix" id="form" action="">
                            <div class="input-group col-xs-2">
                                <span class="input-group-addon">名字</span>
                                <input type="text"
                                       class="form-control" name="username"
                                       value="${username!}">
                            </div>
                            <div class="input-group col-xs-2">
                                <span class="input-group-addon addon-primary">MT4账户名 </span>
                                <input type="text" name="mt4account" value="${mt4account!}" class="form-control">
                            </div>
                            <div class="input-group col-xs-2">
                                <span class="input-group-addon">状态</span>
                                <select name="status" class=" form-control input-s-sm inline">
                                    <option value="">全部</option>
                                    <option value="待审核" <#if "待审核" = status!>selected</#if>>待审核</option>
                                    <option value="审核未通过" <#if "审核未通过" = status!>selected</#if>>审核未通过</option>
                                    <option value="审核通过" <#if "审核通过" = status!>selected</#if>>审核通过</option>
                                </select>
                            </div>
                        <#-- <div class="input-group col-xs-2">
                             <span class="input-group-addon">用户类型</span>
                             <select name="usertype" class=" form-control input-s-sm inline">
                                 <option value="">全部</option>
                                 <option value="user" <#if "user" = usertype!>selected</#if>>普通用户</option>
                                 <option value="agent" <#if "agent" = usertype!>selected</#if>>代理商</option>
                             </select>
                         </div>-->
                            <div class="input-group col-xs-2">
                                <span class="input-group-addon">用户等级</span>
                                <select name="invitelevel" class=" form-control input-s-sm inline">
                                    <option value="">全部</option>
                                    <option value="1" <#if "1" = invitelevel!>selected</#if>>1级</option>
                                    <option value="2" <#if "2" = invitelevel!>selected</#if>>2级</option>
                                    <option value="3" <#if "3" = invitelevel!>selected</#if>>3级</option>
                                    <option value="4" <#if "4" = invitelevel!>selected</#if>>4级</option>
                                    <option value="5" <#if "5" = invitelevel!>selected</#if>>5级</option>
                                    <option value="6" <#if "6" = invitelevel!>selected</#if>>6级</option>
                                </select>
                            </div>

                            <div class="input-group col-xs-1">
                                <button class="btn btn-primary" type="submit">
                                    <i class="icon-search"></i>搜索
                                </button>
                            </div>
                        </form>
                        <div class="form-tool btn-group"></div>
                    </div>
                    <div class="table-responsive">
                        <table id="sample-table-1"
                               class="table table-striped table-bordered table-hover">
                            <thead>
                            <tr>
                                <th>用户类型</th>
                                <th>用户名</th>
                                <th>邀请人</th>
                                <th>身份证号</th>
                                <th>手机号</th>
                                <th>状态</th>
                                <th>申请时间</th>
                                <th>操作</th>
                                <th>资金记录</th>
                            </tr>
                            </thead>
                            <tbody>
                            <#list pageInfo.list as item>
                            <tr>
                                <td><#if item.invitelevel?? && item.invitelevel gt  0>${item.invitelevel}
                                    级</#if>${item.usertype!?switch('agent','代理','会员')}</td>
                                <td>${item.username!}</td>
                                <td>${item.agent!}</td>
                                <td>${item.idcard!}</td>
                                <td>${item.phone!}</td>
                                <td>${item.status!}</td>
                                <td>${item.addtime?string("yyyy-MM-dd HH:mm:ss")}</td>
                                <td><a href="${basePath}/admin/userapply/detail/${item.id}"><#if item.status! !='待审核'>
                                    详细信息<#else>审核用户</#if></a>
                                    <#if sessionAuth?? && sessionAuth?seq_contains("updateApply")>
                                        <a href="${basePath}/admin/userapply/update/${item.id}">修改</a>
                                    </#if>
                                </td>
                            <#--<td>
                                <a href="${basePath}/admin/account/rujin?username=${item.username!}&mt4account=${item.mt4account!}&search=false">出金</a>
                                <a href="${basePath}/admin/account/chujin?accountnumber=${item.mt4account!}&search=false">入金</a>
                            </td>-->
                            </tr>
                            </#list>
                            </tbody>
                        </table>
                    <#include "../common/table-page.html"/>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
</html>

